<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="__URL__/sendsms"  method="post">
		手机号：<input type="text" name="mobile" id="mobile"/><br>
		验证码：<input type="text" name="code"/><button onclick="on_code()">获取验证码</button><br>
		密&nbsp;&nbsp;&nbsp;码：<input type="password" name="pwd"/><br>
		<button type="submit">注册</button>
	</form>
	
	<script type="text/javascript" src="__PUBLIC__/jquery-1.11.1.min.js"></script>
	<script type="text/javascript">
		function on_code()
		{
			var mobile = document.getElementById("mobile").value;  
			$.ajax({
				url:"__CONTROLLER__/sendsms",
				type:"post",
				data:{'mobile':mobile},
				success:function(result){
					 console.log(result); 
			    }
			});			
		}
	</script>
</body>	
</html>